#ifndef COMPRESSFORM_H
#define COMPRESSFORM_H

#include <QWidget>
#include "Transcode.h"
#include<QProgressDialog>
namespace Ui {
class CompressForm;
}

class CompressForm : public QWidget,public VideoCompressCallBack
{
    Q_OBJECT

public:
    explicit CompressForm(QWidget *parent = nullptr);
    ~CompressForm();
    void init(int64_t rate,int fps,int width,int height,QString fileName);
    void changeCompressProcess(const double &proces);

private slots:
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();
    void on_horizontalSlider_valueChanged(int value);

    void on_horizontalSlider_2_valueChanged(int value);



private:
    Ui::CompressForm *ui;
    QString filePath;
    QProgressDialog *pd;
};

#endif // COMPRESSFORM_H
